package com.example.androidtvdemo.net;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Create by os on 2021/9/9
 * Desc :
 */
public interface IappService {
    //获取博客文章数据
    @GET("/portal/article/list/1/30")
    Call<BlogArticle> getArticle();


    @GET("/portal/category/list")
    Call<BlogCategory> getCategoryList();

    @GET("/portal/article/list/{categoryId}/1/30")
    Call<BlogSubArticle> getArticleById(@Path("categoryId") String categoryId);
}
